//
//  MacroChooseNum.h
//  MoXiProject
//
//  Created by 沈晨宇 on 2017/7/10.
//  Copyright © 2017年 周筱雯. All rights reserved.
//

#ifndef MacroChooseNum_h
#define MacroChooseNum_h

/** 屏幕的宽度 */
#define ScreenWidth   [[UIScreen mainScreen] bounds].size.width
/** 屏幕的高度 */
#define ScreenHeigth    [[UIScreen mainScreen] bounds].size.height
#define SCREEN_SIZE [UIScreen mainScreen].bounds.size
#define scaleWithSize(s) ((s) * (SCREEN_SIZE.width / 375))

#define Color(r, g, b, a)[UIColor colorWithRed:(r)/255.0 green: (g)/255.0 blue: (b)/255.0 alpha: (a)]


#define K_FRAME_BASE_WIDTH      [[UIScreen mainScreen]bounds].size.width
#define K_FRAME_BASE_HEIGHT     [[UIScreen mainScreen]bounds].size.height

#define K_RECT_FRAME(R) R.frame
//#import "HelpModel.h"

//#import "LotteryModel.h"
#define K_RECT_MAXX(R) CGRectGetMaxX(K_RECT_FRAME(R))
#define K_RECT_MAXY(R) CGRectGetMaxY(K_RECT_FRAME(R))

/**字体大小*/
#define fontSize(fontSize) [UIFont systemFontOfSize:(fontSize)]

#define Heigt_P         ScreenHeigth / 667.0
#define Width_P         ScreenWidth / 375.0
#import "HomeModel.h"

#define DURATION 0.4f
#define Guoguo_MainToneColor ([UIColor colorWithRed:216.0/255 green:66.0/255 blue:66.0/255 alpha:1])
#define Guoguo_backgroundColor ([UIColor colorWithRed:247.0/255 green:247.0/255 blue:247.0/255 alpha:1])
#define Guoguo_backgroundWhiteColor ([UIColor colorWithRed:254.0/255 green:255.0/255 blue:255.0/255 alpha:1])
#define Guoguo_bordColor ([UIColor colorWithRed:240.0/255 green:240.0/255 blue:240.0/255 alpha:1])
//#define Guoguo_hintFontColor ([UIColor colorWithRed:223.0/255 green:223.0/255 blue:223.0/255 alpha:1])
#define Guoguo_hintFontColor [UIColor lightGrayColor]

#define Guoguo_darkGreyFontColor ([UIColor colorWithRed:99.0/255 green:99.0/255 blue:99.0/255 alpha:1])
#define Guoguo_MainColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0] ///< 用10进制表示颜色，例如（255,255,255）黑色
#define Guoguo_BlueColor ([UIColor colorWithRed:12.0/255 green:185.0/255 blue:253.0/255 alpha:1])
#define Guoguo_UserInfoBackgroundLeft ([UIColor colorWithRed:178.0/255 green:122.0/255 blue:205.0/255 alpha:1])
#define Guoguo_UserInfoBackgroundRight ([UIColor colorWithRed:197.0/255 green:103.0/255 blue:91.0/255 alpha:1])
#define Guoguo_YellowBackground ([UIColor colorWithRed:247.0/255 green:246.0/255 blue:241.0/255 alpha:1])

#define TopBarHeight (44 + (IOS6 ? 0 : 20))
#define TabBarHeight 49


/*判断是否为5*/
#define IPHONE5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640,1136), [[UIScreen mainScreen] currentMode].size) : NO)
/*判断是否为6*/
#define IPHONE6 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(750, 1334), [[UIScreen mainScreen] currentMode].size) : NO)
/*判断是否为6plus*/
#define IPHONE6Plus ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1242,2208), [[UIScreen mainScreen] currentMode].size) : NO)
/*判断是否是iPhone X*/
#define IPHONEX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125,2436), [[UIScreen mainScreen] currentMode].size) : NO)



#define IOS6 ([[[UIDevice currentDevice] systemVersion] doubleValue]<7.0 ? YES : NO)
#define IOS10 ([[[UIDevice currentDevice] systemVersion] doubleValue]>10.0 ? YES : NO)










#endif /* MacroChooseNum_h */
